]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
userMenu: Hide menu immediately before suspending
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 19 Oct 2012 16:52:34 +0000 (18:52 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 19 Oct 2012 17:09:41 +0000 (19:09 +0200)
The same logic as for commit 1f30670c1d8d8 applies to the case
where we lock the screen before suspending - we don't want the
menu to jump to the opposite screen side to fade out, so remove
the animation altogether.

https://bugzilla.gnome.org/show_bug.cgi?id=686484

js/ui/userMenu.js

index 464d8e4ef4811f6c0f830911f164ac4f82d388c8..8ebfef3ad92490188ef7f99d7713f29e48037ba5 100644 (file)
@@ -849,6 +849,7 @@ const UserMenuButton = new Lang.Class({
                     this._upClient.suspend_sync(null);
                 }));
 
+                this.menu.close(BoxPointer.PopupAnimation.NONE);
                 Main.screenShield.lock(true);
             } else {
                 this._upClient.suspend_sync(null);